Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for custom objectId #1088

Merged

Conversation

martinpfannemueller
Copy link
Contributor

I implemented the custom objectId feature mentioned in #1087 including unit tests. Is there something missing to get this merged?

Thanks!

Copy link
Contributor

@azlekov azlekov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@martinpfannemueller I have reviewed your code and looks quite clean and nice to me. Can you merge master here in your branch and check the small feedback I left.

Thanks

parse/src/main/java/com/parse/ParseRESTObjectCommand.java Outdated Show resolved Hide resolved
parse/src/main/java/com/parse/ParseRESTObjectCommand.java Outdated Show resolved Hide resolved
parse/src/main/java/com/parse/ParseRESTObjectCommand.java Outdated Show resolved Hide resolved
parse/src/main/java/com/parse/ParseRESTObjectCommand.java Outdated Show resolved Hide resolved
parse/src/test/java/com/parse/ParseObjectTest.java Outdated Show resolved Hide resolved
@mtrezza
Copy link
Member

mtrezza commented Oct 11, 2021

Looking at the changes, should we add a lint step to the CI?

@azlekov
Copy link
Contributor

azlekov commented Oct 11, 2021

Please open an issue @mtrezza I can take it

@mtrezza
Copy link
Member

mtrezza commented Oct 11, 2021

Great, there it is! #1119

Martin Pfannemüller added 3 commits October 11, 2021 19:39
…-Android into feature/custom_objectId

# Conflicts:
#	parse/src/test/java/com/parse/ParseClientConfigurationTest.java
#	parse/src/test/java/com/parse/ParseObjectTest.java
@martinpfannemueller martinpfannemueller changed the title Support for custom objectId, implements #1087 feat: Support for custom objectId, implements #1087 Oct 11, 2021
@parse-github-assistant
Copy link

I will reformat the title to use the proper commit message syntax.

@parse-github-assistant parse-github-assistant bot changed the title feat: Support for custom objectId, implements #1087 feat: support for custom objectId, implements #1087 Oct 11, 2021
@parse-github-assistant
Copy link

parse-github-assistant bot commented Oct 11, 2021

Thanks for opening this pull request!

  • ❌ Please edit your post and use the provided template when creating a new pull request. This helps everyone to understand your post better and asks for essential information to quicker review the pull request.

@martinpfannemueller
Copy link
Contributor Author

I have no idea why the two tests testObjectNotFoundWhenSaveAsync and testMissingRequiredFieldWhenSaveAsync in the ParseInstallationTest-file fail here. Locally everything runs just fine. Attached you will find the output of running the task jacocoTestReport locally.
jacocoTestReport.log

@azlekov
Copy link
Contributor

azlekov commented Oct 11, 2021

@martinpfannemueller can you close and re-open the PR so we can trigger another CI

@azlekov azlekov closed this Oct 14, 2021
@azlekov azlekov reopened this Oct 14, 2021
@azlekov
Copy link
Contributor

azlekov commented Oct 14, 2021

@mtrezza how we can re-run the CI build. I tried already closing and re-opening the issue.

@mtrezza
Copy link
Member

mtrezza commented Oct 14, 2021

I suggest to first resolve the conflicts, then we look into the CI.

semantic-release-bot and others added 4 commits October 14, 2021 18:55
## [2.0.1](parse-community/Parse-SDK-Android@2.0.0...2.0.1) (2021-10-14)

### Bug Fixes

* add maven publications to configure the Jitpack releases ([parse-community#1128](parse-community#1128)) ([67c4fb6](parse-community@67c4fb6))
…-Android into feature/custom_objectId

# Conflicts:
#	parse/src/main/java/com/parse/ParseRESTObjectCommand.java
#	parse/src/test/java/com/parse/ParseObjectTest.java
@martinpfannemueller
Copy link
Contributor Author

I added an explicit test for the ParseRESTCommand and the logic of it. The test coverage should be fine now.

@mtrezza
Copy link
Member

mtrezza commented Oct 27, 2021

Running tests...

Copy link
Contributor

@azlekov azlekov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mtrezza mtrezza changed the title feat: support for custom objectId, implements #1087 feat: support for custom objectId Nov 3, 2021
@mtrezza mtrezza changed the title feat: support for custom objectId feat: add support for custom objectId Nov 3, 2021
Copy link
Member

@mtrezza mtrezza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please also add doc headers to the new public properties and methods? So that this feature appears in the API documentation.

@azlekov
Copy link
Contributor

azlekov commented Nov 16, 2021

@martinpfannemueller gentle ping when you have some free time if is possible to add some JavaDoc as @mtrezza pleases, so this can be merged. Looking forward to see this merged 🤞

@azlekov azlekov mentioned this pull request Nov 16, 2021
13 tasks
@martinpfannemueller
Copy link
Contributor Author

I just added some JavaDoc to allowCustomObjectId() in the configuration builder and the isAllowCustomObjectId() getter.

@mtrezza
Copy link
Member

mtrezza commented Nov 21, 2021

There also seems to be a lint fix needed, see the failing lint check

@martinpfannemueller
Copy link
Contributor Author

I updated the JavaDoc and ran spotlessApply

@mtrezza
Copy link
Member

mtrezza commented Nov 21, 2021

Thanks, let just see whether the CI passes.

Copy link
Member

@mtrezza mtrezza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for this PR!

@mtrezza mtrezza merged commit d420371 into parse-community:master Nov 21, 2021
parseplatformorg pushed a commit that referenced this pull request Nov 21, 2021
# [2.1.0](2.0.6...2.1.0) (2021-11-21)

### Features

* add support for custom objectId ([#1088](#1088)) ([d420371](d420371))
@parseplatformorg
Copy link

🎉 This change has been released in version 2.1.0

@parseplatformorg parseplatformorg added the state:released Released as stable version label Nov 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state:released Released as stable version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants